<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?=$this->config->item('charset');?>">
	<title><?=$username?>的后厨_<?=$this->config->item('site_name');?></title>
	<meta name="keywords" content="<?=$this->config->item('site_keywords');?>" />
	<meta name="description" content="<?=$this->config->item('site_description');?>" />
	<link href="<?=base_url('static/css/global.css')?>" rel="stylesheet" type="text/css" media="screen">
	<link href="<?=base_url('static/css/usercenter.css')?>" rel="stylesheet" type="text/css" media="screen">

	<script src="<?=path_res('static/js/jquery.js')?>"></script>
	<script src="<?=path_res('static/js/jquery-ui.min.js')?>"></script>
	<script src="<?=path_res('static/js/tempo.min.js')?>"></script>
	<script src="<?=path_res('static/js/functions.js')?>"></script>
	<script src="<?=path_res('static/js/jquery.autocomplete-min.js')?>"></script>
</head>
<body>

<? $this->load->view('header'); ?>
<? $this->load->view('auth/user_menu'); ?>

<div class="user_main clearfix">
		<div class="user_main_index clearfix">
			<div class="user_main_index_l">
			<?php if($user_caipu):?>
			<?php foreach( $user_caipu as $caipu) :?>
			<?php $index++?>
				<div class="uindex_item clearfix">
					<a href="" class="avatar"><img src="<?=base_url('/static/img/cdicon.gif')?>"></a>
					<div class="c">
						<div class="con clearfix">
							<a target="_blank" href="<?=site_url('u/'.$caipu['authorid'])?>" class="avatar1"><img src="<?=$this->user_login->get_avatar_dir($caipu['authorid']);?>"><?=$caipu['author']?></a>
							<p><span class="tag">创建菜谱</span></p>
						</div>
						<div class="yy clearfix">
							<a target="_blank" href="<?=site_url('recipe/'.$caipu['id'])?>" class="blocklink clearfix">
								<span class="yycpimg"><img src="<?=$caipu['coverImage']?>"></span>
								<div class="yycon">
									<h3><?=$caipu['title']?></h3>
									<p><?=$caipu['tips']?></p>
								</div>
							</a>
						</div>
						<div class="time"><?=date('Y-m-d', $caipu['time'])?></div>
					</div>
				</div>
			<?php endforeach;?>
			<?php else:?>
				<div class="nocontenttt">暂无内容!~</div>
			<?php endif;?>
			</div>
			<div class="user_main_index_r">
				<div class="uir_con1">
					<h3>我的关注</h3><a href="###" class="uir_con1_more">更多 &gt;</a>
					<ul class="uir_ul1 clearfix">
						<?php foreach( $user_guanzhu as $guanzhu) :?>
						<li><a target="_blank" href="<?=site_url('u/'.$guanzhu['id'])?>" title="<?=$guanzhu['username']?>"><img alt="<?=$guanzhu['username']?>" src="<?=$guanzhu['headicon']?>"></a></li>
						<?php endforeach;?>
					</ul>
				</div>
				<div class="uir_con1">
					<h3>Ta的菜单</h3><a href="<?=site_url('u/'.$uid.'/caidan')?>" class="uir_con1_more">更多 &gt;</a>
					<ul class="uir_ul2 clearfix">
						<?php foreach( $user_caidan as $caidan) :?>
						<li><a href="<?=site_url('caidan/views/'.$caidan['id'])?>" target="_blank" title="<?=$caidan['title']?>"><?=$caidan['title']?></a></li>
						<?php endforeach;?>
					</ul>
				</div>
			</div>
		</div>
</div>


<? $this->load->view('footer'); ?>